package cn.itcast.nems.order.service;


import cn.itcast.nems.order.dao.entity.OrderRefundReverse;
import cn.itcast.nems.order.dto.OrderRefundReverseSummary;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 退费单-回冲 服务类
 * </p>
 *
 * @author liyong
 * @since 2023-09-14
 */
public interface OrderRefundReverseService extends IService<OrderRefundReverse> {

//    /**
//     * 添加回冲
//     *
//     * @param orderRefundReverseDTO
//     * @return id
//     */
//    String addOrderRefundReverse(OrderRefundReverseDTO orderRefundReverseDTO);

    /**
     * 根据退费单汇总回冲信息
     *
     * @param orderRefundIds 退费单ID
     * @return key:退费单ID value:回冲汇总信息
     */
    Map<String, OrderRefundReverseSummary> findOrderRefundReverseSummarys(Collection<String> orderRefundIds);

    List<Map<String, Object>> orderRefundBack(String orderRefundId);
}
